<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>实名签署合同</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">

        <div class="layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">恭喜你,合同内容签署成功 </div>
            </div>

            <div class="layui-card">
                <div class="layui-card-header">签署成功的合同<button class="layui-btn layuiadmin-btn-list" onclick="cVerify()" id="c_todo">点击查看</button></div>
            </div>

            <div class="layui-card">
                <div class="layui-card-header">签署成功的合同<button class="layui-btn layuiadmin-btn-list" onclick="pVerify()" id="p_todo">下载</button></div>
            </div>

            <div class="layui-card">
                <div class="layui-card-header">重新登录后可以操作主功能<button class="layui-btn layuiadmin-btn-list" onclick="loginOut()" id="v_todo">重新登录</button></div>
            </div>
        </div>

    </div>
</div>

<script src="/static/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'console'], function(){
        var $ = layui.$;

    });

    function cVerify() {//合同查看
        window.location.href = "#(merch.viewpdf_url)";
    }

    function pVerify() {//合同下载
        window.location.href = "#(merch.download_url)";
    }

    function loginOut() {
        window.location.href = "logout";
    }

    function showloading(t) {
        if (t) {//如果是true则显示loading
            //console.log(t);
            loading = layer.load(1, {
                shade: [0.1, '#fff'] //0.1透明度的白色背景
            });
        } else {//如果是false则关闭loading
            //console.log("关闭loading层:" + t);
            layer.closeAll('loading');
        }
    }
</script>


</body>
</html>
